package cn.hx.mallorder.dao;

import cn.hx.mallorder.entity.OmsOrder;
import cn.hx.mallorder.entity.OmsOrderItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * 订单中所包含的商品(OmsOrderItem)表数据库访问层
 *
 * @author makejava
 * @since 2022-11-30 16:05:57
 */
public interface OmsOrderItemDao extends BaseMapper<OmsOrderItem> {

    void deleteByOrderItemId(Long id);

    List<OmsOrderItem> findByOmsOrderItemsOmsOrders(Integer id);

    int insertOrderItem(OmsOrderItem omsOrderItem);

    Integer findItemById(Long id);

    List<OmsOrderItem> findItemByOrderId(Long id);
}